package com.zonta.finance.config;

import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.util.AntPathMatcher;

/**
 *
 */
@ConditionalOnProperty(prefix = "sys" ,name = "enable-my-security",havingValue = "true")
@Configuration
public class PathMatcherConfig {

    @Bean
    public AntPathMatcher antPathMatcher(){
        return new AntPathMatcher();
    }
}
